Well these constants are php >=5.4 only. Also I think we should remove the `$raw` parameter anyway.
Because the default with raw = false is inconsistent with the escape('url') filter and the symfony url generation.