Convert values to strings before writing to config file