strip query from filename

fixes #7
1.0.5