The documentation states
The pagename will be the first headword in your textfile (the first word between ''' '''). It is currently automatically inserted in the uploaded page.
I don't know why pagefromfile.py acts this way and I don't find it helpfull at all since the user already states in the file what he intends to have inserted to the page. This behaviour should be made into an option instead of default.