Change fileName to be a parameter instead of part of the route so that it can handle special characters