add jp encoding support