Remove reliance on "bytes" and "encoding/binary"

There was a circular dependency when testing pkg/encoding/binary, so we
couldn't do things the way we were doing using these packages in
pkg/syscall.  It's fine though, the newer version is cleaner and more
intuitive in my opinion.