Fixed incorrect handling of single quotes.