diff --git a/modules/casper.js b/modules/casper.js
index <HASH>..<HASH> 100644
--- a/modules/casper.js
+++ b/modules/casper.js
@@ -742,9 +742,14 @@ Casper.prototype.getPageContent = function getPageContent() {
  */
 Casper.prototype.getCurrentUrl = function getCurrentUrl() {
     "use strict";
-    return decodeURIComponent(this.evaluate(function _evaluate() {
+    var url = this.evaluate(function _evaluate() {
         return document.location.href;
-    }));
+    });
+    try {
+        return decodeURIComponent(url);
+    } catch (e) {
+        return url;
+    }
 };
 
 /**
fixed edge case when current url couldn't be decoded