Fixed encoding of parameters in confirmation dialogs

- This also affects 3.1 but it seems that jQuery has sanitized itself the input. Merge nonetheless.