Correctly handle NUL bytes in feed and repr

Buffer_repr is pretty gross now though. Could definitely be cleaned up,
but it's just the repr so I'll save it for a rainy day.