Avoid memory leak when encoding the key
[#1682] HttpVersion.valueOf(...) should not convert to uppercase