Partial revert of the rewrite of canonize (OpenID.class.php)

Signed-off-by: emanuele <emanuele45@gmail.com>