Qualsiasi opzione per ignorare le restrizioni sul nome utente?

Did you try using encodeURI on the frontend and URI.unescape on the backend?

encodeURI("dave smith") // 'dave%20smith'
URI.unescape("dave%20smith") # 'dave smith'