Improve sanitize_string () filtering to avoid issues on some systems with strong passwords enabled.