Only import JSON files, newline escaping

The bot was importing every file in the alternatives directory.
Changed to import only .json files.

We were using a very esoteric function for newline escaping.
Now using str.replace and escaping tabs as well.