Add filename stripping to client.py