add percent encoding for locate