UTF-8 encoding fix.

I was having an issue where the AD server was sending back bad utf-8 code ( \x82 I believe was the code value ).  I'm currently using this fix in a production scenario.  I would love to get some feedback on if this is a valid fix.