Fixed string handling in preferences and settings filenames