revise encoding in message box