bug fix: takeExtension actually leaves . as part of the output