fix url template tag for django 1.6
python3 unicode stuff