Added string to HTML entities conversion.