Sanitize cache keys for memcached

Closes #208
Fix invalid char range
Add test for memcached key sanitation