Binary version of Joe Armstrong's ubf.erl.