Bug fix: coerce and validate byte datatypes properly