Fixes some bugs after test run

dokuwiki:open_pagefile() used .gz suffix for BZ2 files and .bz2 suffix
for GZIP.

dokuwiki:encode_pagename(): turns out dokuwiki only uses lowercase.

moinmoin:EditLog: the file ending character needs to be stripped, as it
gets returned by readline().