Fix #1009 Replace all special characters in user's identity

王权利请求将github/fork/tomykaira/bug_1009合并到master

Created by: tomykaira

This seems to be naive, but identity should be always available for file names.

Therefore I prefer generating a safer identity to patching the key's name.

合并请求报告