url-encoding for input is working