Added support for custom headers in encode method