Less code is better, __fish_git_prompt_validate_chars refactoring