Escape ' when creating user-config.py

https://sourceforge.net/p/pywikipediabot/bugs/1651/
Change-Id: I8c8abdea5d735fd714f59775f612c0346f001e90
Merge "Escape ' when creating user-config.py"