Fix #3974 - Validate and normalize URI for axis_login
Land #3981, @wchen-r7 Fixes #3974, axis_login.rb does not normalize URI