added unicode utf-8 encoding.
fixed table and message template.