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