NXP-14224: Prevent UnicodeEncodeError mostly by using unicode() instead of str() and only allowing alpha-numeric characters for username
Format
NXP-14224: Always use 'utf-8' to encode username and password from Settings dialog