Adding test for JsonCoder.
Catch better json-encoding exceptions

EncodingError is superclass of Encoding::UndefinedConversionError,
and also Encoding::ConverterNotFoundError
Merge branch 'pull-965/json-coder-test', closes #965

Also fixes underlying JsonCoder behavior by widening the scope of exceptions
that get converted to Resque::EncodeException