Decodes data from base64. Memory allocation is done
automatically. Note that this function only works for
strings, other data might not be handled correctly.
The encoded is expected
to start with prefix prefix and then contain base64 data.