fixed data_uri method to return the correct encoded version of the data with additional prefix