function checks if the string passed contains any characters that are forbidden in image- or filenames Source: core/String.js, line 110