cart commands encoding fix