Added support for escape characters and tested: IT WORKS