Add encoding option to append charset to Content-Type