fix data url decoding

Here there is a small fix which I found when I was experimenting with the code. Thank you.