The problem is caused by the canonical redirect checked on using a theme. If you place
remove_action('template_redirect','redirect_canonical');
in the functions.php file belonging to your template, the problem is fixed.
If you want more information, see
this related issue.