Fixes '\0' when converting string to buffer in put_raw_object