The Lotus Notes app encodes the message using base-64 content type encoding, and so while decoding i'm using the same (MIME-Base64-3.07 > MIME::Base64). The thing is this function/moudule decodes it back from base-64 to ascii character set (not mentioned clearly in the doc as to what it converts to), and hence the problem.