Add ability to specify content encoding.