bp: fixed encoding problem