add base2string and string2base to string.k

@andreistefanescu please review.

Fixes #573