Sanitize unicode in keys as well as values

fixes #3 on github