libfreerdp-core: fix redirection parsing bug, add logging