fixes invalid http encoding header