fixed content encoding issue when the system encoding is not utf-8