parse single quoted strings and add support for escapes