case folding bug fix, url encode