added base 64 encoding support to grain.string