add definitions of encoding in crowbar.h