Better 'invalid' character removal.