Try this using the WriteTo method

This should resolve the same issue that #18 does, and it doesn't require an external dependencies, or using raw syscalls.