Fix bug in `UrlFormat` when using a data URL

Change-Id: Ie822f160491be021e27b573dda334c5959c41a33
Reviewed-on: http://gerrit.causes.com/36946
Tested-by: jenkins <jenkins@causes.com>
Reviewed-by: Shane da Silva <shane@causes.com>