Replace all illegal characters with 'space hyphen'.