[core] force text/json minetype in helpers.loadFile