lua-sockets: Simplify box_io_tostring.
lua-sockets: minor cleanups

Remove trailing spaces, an unused argument, simplify code.