Move rawurlencode functionality to module.php plus fixed some more W3C validation errors.