Fix handling of backslashes in strings