JNA wrapper for <sys/xattr.h>

Here is my wrapper for <sys/xattr.h> with support for xattr list/get/set/remove.

Tested on OS X 10.9.2
So if I wanted a Pointer to a NULL-terminated UTF-8 String I'd use Pointer.setString("XYZ", "UTF-8")? In the docs it doesn't explicitly state it will be NULL-terminated. Also String.length() isn't necessarily the byte size once encoded, so will this automatically allocate the necessary memory as well?