fixed an encoding issue in flash message class