return object sid/guid as buffer instead of string

when querying object sid or object guid return the buffer it self instead of string representation because when convert back to buffer for querying by buffer later is not success otherwise.