fix string encode bug in confirmation email code