Resolve encoding error for UTF-8.