public static function encode($string, $encodeSlashes = false)
	{
		if($encodeSlashes)
		{
			return rawurlencode($string);
		}
		
		return implode('/', array_map('rawurlencode', explode('/', (string)$string)));
	}