fixed problem where extra spaces were being escaped and passed to applications