Made non_empty work with all encodings

* Memoized non_empty regexp for speed
* Had to skip ISO-2022-JP-2 and UTF-7 because there was no way to create
  the string (iconv is deprecated from 1.9 and removed from 2.0)