I don't think we need to worry, but this would give unexpected results if the filename had multiple dots.