naively encode fs cache keys if they arent byte strings