Fix non_empty? to make tests pass

- Match the regexp encoding with that of the string it's compared
  against.
- Skip dummy encodings, which aren't handled by M17N. Requires update to
  the test itself, to prevent it crashing on .encode.