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

Fixes #26 

PJB-26