fix bug about pagename including unicode and whitespace