Avoid regexp in Save()

As discussed in disintegration/imaging#9