[ticket/26] Properly escape URL for correct redirect in login method

PJB-26
Merge pull request #27 from marc1706/ticket/26

[ticket/26] Properly escape URL for correct redirect in login method