fixed bug in finding matching apostrophes in certain cases
resolves #3: added support for apostrophe escaping using backslashes