Updated the get_attachment method to return the object.

  This allows us to pass the binary data through to Lua without
 losing anything in a middle-step conversion to UTFString.