as of f19a9510, specifying ASCII (enc=22) results in NULL being returned from xmlAllocParserInputBuffer (because xmlLookupCharEncodingHandler returns UNSUPPORTED (32) for ASCII.
xmlLookupCharEncodingHandler