MDL-41921 Trim spaces from URLs submitted in forms