Mini parser for detecting character encoding from meta elements
string - the data to work on for encoding detection
Return a name,value pair for the next attribute in the stream, if one is found, or nil
Skip over comments
[Validate]