fixes #55 - can write out non-ascii characters to disk

no tests were covering writing out a config file to disk that had non-ascii characters