remove unused import
minor code cleanup
raise a parser error even in recovery mode when encountering undecodable input to avoid having to deal with mixed-encoding trees
add TODO
only apply decoding error change to XML parsing (not HTML for now)