After investigating this thoroughly, I have come to the conclusion that the need for to_binary came from a bug in rack, which has subsequently been fixed. If warnings show up after this change they should disappear with the release of rack 1.3