Empty string "ext" should strip extension. Closes gh-1087.