Update utf8 handling for file saving

Fixes the problem whereby international characters get corrupted within
backups