encode anything in base64

note for mp3 replace all '=' with '%3D'
and change the data type
from
 
data:application/mp3;base64


to

data:audio/mpeg;base64