Backports https://github.com/rack/rack/pull/741

Freezes some more strings in the pursuit of performance.