sparklemotion/nokogiri — pull request #756 by soulcutter (2012-09-01 16:45:49+00:00)
Title: Raise an ArgumentError when invalid encoding is specified

Currently if you specify an invalid encoding you get the rather mysterious error:

Class:
Message: <"no implicit conversion from nil to integer">