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