fix bug about pagename including unicode and whitespace

When editing pagename including Unicode and whitespace, there's a bug caused by Unicode equal comparison failed. This commit fix the issue.