The links are generated like this in the template:
This brokes the urls!!!
Easy to reproduce:
1. Enter http://www.phpbb.com/community/memberlist.php
The link for letter A is:
2. Now click letter A, the link for A is now:
Besides empty 'mode' var shouldn't be used here (mode=)