Prevent double encoding

I understand the problem of the PHP version so to prevent double encoding, I propose to test the PHP version first.

If the version is 5.2.3 or higher, the best way is to set the new parameter "double_encode" to false and if the version is lower in this case a simple solution is to decode the text first.

Christelle