Improved URL safe formatting method.
see https://github.com/blueriver/MuraCMS/issues/1358