Rough attemp to fix parse_url issue with urls containig : in query