Fix returning bytes for Posix