fixes jmoiron/johnny-cache#31

Thought maybe should create a new function that does the substitution, but this seemed the simplest