Fix problem with string's escape sequences

Fix some problems with string's escape sequences. The biggest problem was that \" and \' were not accepted. The new implementation is conform to the Lua syntax.

I'm not sure about how the error should be reported in case of wrong sequences but may be this can be fixed with a second commit.