optimise oidToString function to perform better

Before Optiomisation:
BenchmarkOidToString	 1000000	      1077 ns/op

After Optimisation:
BenchmarkOidToString	 5000000	       665 ns/op