Fix ajax issue with value spaces by encoding uri (Closes #22)