Allow unicode characters in the form title

Using utf-8 encoded unicode characters in the title attribute resulted in a ascii encode error. This commit sould fix this.