refactor to reduce complexity in CSR private methods

Modify ASN1.general_name_parser to provide more readable error when not
passing a valid value