-Added support for initial BOM character.
-Added ignoring of newlines and linefeeds at the beginning.