module Mail::Multibyte

def self.verify!(string)

Verifies the encoding of the string and raises an exception when it's not valid
def self.verify!(string)
  raise EncodingError.new("Found characters with invalid encoding") unless verify(string)
end