Improving gsub syntax

Changed an odd regex for a single character '.'.