How to add or remove a byte order mark