On a multilanguage website (using i18n module), sometimes clean URLs are broken. Since the language attribute is missing into url() function, I've added it on the conditions explained below:

Language is set for node x
Set !content_url with the assigned language
Language is not set for node x (or language neutral)
!content_url language is set to global $language (is it correct?)

Suggestions are welcome.