added space to encode.
re-built with space char escaping %20 sort of thing.