Added encoding for spaces (e.g. " " converts to %20)