Attempted to fix an error for the Mac OS where saved file wasn't encoded
properly.