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.

What do you mean by that? Should there be a warning raised here?