Add URL helpers to make compatible with safemode on 1.5