ERT-731 Writing config file in GUI erases content

Error with unicode/utf-8