Problem solved! XML file is UTF-8 and I read attachment file name from there. So I needed to use ZCONVERT function and that resolved this.
 
$ZCONVERT(AttachFileName,"O","UTF8")