Allow non-ASCII chars in keychains. Fixes #303.