correct problem encoding to create json file and load a file urls