Remove extra trailing zero from oid

`$` would return a string of length 25, including the trailing null. String length changed to 24, avoiding an extra null byte in the output