Use rawurlencode to encode spaces. Closes #13