getMessage(), ENT_QUOTES ); return '' === $text ? 'This step failed, and its error message could not be shown (it held text that is not valid UTF-8).' : $text; } }