Maciej suggested this optimization. We can streamline the lexer by handling BOMs up front instead of inside the parser.
Created attachment 29962 [details] patch
Comment on attachment 29962 [details] patch Maciej reviewed.
http://trac.webkit.org/changeset/43156