normalize unicode in buffer when saving