Fix ALLOWEDCHARS regexp, fixes #6