Convert string to Unicode before matching with regexp.

This approach works well for all encodings except those that are currently not supported by ruby.

These encodings are:
* ISO-2022-JP-2 
* UTF-7 ( this encoding gives no bonuses over UTF-8 and mostly deprecated now, used only on some old mail servers )