encoding u-b