Fixed error encoding over RPC
Merge pull request #859 from dswd/fix_error_transport

Fixed error encoding over RPC