fix for cache_key - control characters problem