Add more parsing functions and the ability to specify a character encoding