Better handle urls provided by users. https://drupal.org/node/1874034