remove escape characters in restore cmd.