initial .strToBuf implementation (requires util-extend)
documented and tested .strToBuf