Remove extraneous sort

Since we iterate in sorted order, we're guaranteed that malformed will
be sorted.
Fix doc typo
Use str/unicode for passthrough instead of None