Further improvements to UEB

see https://github.com/liblouis/liblouis/pull/1265