optimise oidToString function to perform better

Adds an optimisation to oidToString function to perform better.

Before Optimisation:
BenchmarkOidToString	 1000000	      1077 ns/op

After Optimisation:
BenchmarkOidToString	 5000000	       665 ns/op