backport(4.x): Fix serious issue in .toString(16)
(#295)
#309
+15
−5
.toString(16)
(#295)
#309