revert: Don't check lone argument in get_encoding