normalize cache keys to prevent errors with special chars