export byte conversion fns