Verify cache key is a string, closes #1552

Issue was the test was passing a number as the key, so catbox was failing because it uses `Buffer.byteLength` which requires a string. This makes sure that keys are strings when possible.