hacked mmt uri encoding to fix drupal bug