Replaced last remnants of defaultCharset().
Better toString method for QueryType.