Adding http encoding support