scanner: support escape characters in strings.