Correctly escape values when updating autoconf.php. (closes #215)

The responsibility to correctly escape database, hostname, username, password and timezone has been moved to write_config_file.