Encoding JSON to ANSI and renaming with ".txt" extension in Order to bypass Mozilla bug