Fix handling of string literals with format directives. Fixes issue 18.