fixing data uri encodiing