Bug fix: Encode asset urls

Before this commit, urls of assets containing non ascii characters (example: τεστ.jpg) are not properly encoded.