unix modsocket: Make .makefile() method more compliant.

.makefile() should allow to specify which stream time to create - byte
or text.
objstr: Implement .endswith().