Swap empty strings for empty byte arrays