add the capability to use white space and unicode character  in page names

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