fixes #399 - Properly handle non english URL params when redirect to
login and than to the requested URL