Use bytes instead of str for forward compatibility