Allow accented characters.

Accented characters like á, é, í, ó, ú, ü, ñ,... caused the error "Failed to execute 'btoa' on 'Window'"

This pull request addresses that by escaping the characters.

It also handles the colour selection when the first initial isn't between A and Z.