properly handle xml entities in command line.