Data should be bytes, not str