The problem's not Japanese-specific. Try any accented European letters for the same problem.
Yeah I didn't handle any cases for other languages since most of the articles are in english. But I feel ya on making search engines for multiple languages, had to do that this summer and it was a nightmare