disregard spaces in locale_string_is_safe

Closes #3586472

Merge request reports

Loading