Only remove trailing dots when there's only one.

Closes #149.