Check for BOM before opening file to avoid locking issues
Keep original native text when creating string
Merge remote-tracking branch 'upstream/refactor-syntax_unicode' into refactor-syntax_unicode