Improving parseString() to better handle exotic data/encoding combinations.