Fixed handling of escaped characters
Testing invalid escape sequences