Encode and decode URL activation query string correctly.