The trimming was done this way so as to make all urls as short as possible, thereby saving some bytes. It's unfortunate that wordpress has this behavior, since according to spec those links are valid. Thank you for letting us know about the problem.
The option to turn it off is to add:
ModPagespeedDisableFilters trim_urls
to your .htaccess or pagespeed.conf file.
-Naomi