Fixes #875: Security::generateRandomKey() can now be safely used in URLs