corectly escape spaces from URL

Signed-off-by: aurel <aurel.savoiu@cti.pub.ro>