fix gsub to properly escape '.'