After a hours of debugging, I've decided that we should simply strip the files of all characters that aren't alphanumeric or whitespaces. This will probably not affect our categorization hardly at all.  The json files that are saved should now load correctly