a fix for a bug in s-format

it needs literal replacement :-(

Sorry. This is a pain in the arse. These things work great though! They're making lots of templating very nice.