Small changes to how bytes are encoded/decoded