Provide additional encoding func for extended chars

The existing encodeForDb function is equivalent to ASP's HTMLEncode on
1252 encoded content. However, for some scenarios, we need simply to
only encode the EXTENDED characters, and not the HTML special
characters. This commit adds a new function to do just that.