fix referer euc-jp bug