It wasn't doing anything that a literal couldn't do and used unicode_escape which only understands latin1 (The author of the code seems to have thought it took an encoding argument but it looks like that was silently ignored.)
actionable