ConfigFile now  handles escaping special characters by itself. Closes #2136.