Make base2 primitive safe for non-base2 characters (handle error).