Fixed root node problem
Fixed encoding null values
Added sanity check to unescaping user input

Also, renamed ThrowConversionExceptions option to BadInputExceptions.