Remove utf-8 bom marker when opening a file

Fix for issue #698
Remove utf-8 bom marker when opening a file.