module Net::IMAP::StringFormatter

def nstring(str)

coerces non-nil using +to_s+
def nstring(str)
  str.nil? ? nil : string(str)
end