Unify SkipWhiteSpace()/ReadBOM() calls, add asserts
Merge pull request #249 from Dmitry-Me/unifySkipWhiteSpaceCallsAddAsserts

Unify SkipWhiteSpace()/ReadBOM() calls, add asserts