Encode signature text with UTF-8

This gave an error when for example the name contains wide characters.