Handle shell charcs correctly