Resolve string escape sequence DeprecationWarnings
This MR closes #286 (closed).
Strings with only invalid escape sequences were prefixed with an r
. Strings containing both valid and invalid escape sequences were handled on a case-by-case basis, as simply changing to a raw string breaks valid escape sequences.