Added the ability to specify a custom encoder instead of the default marshal encoder.
Removed private key file.