Clean up strings in the ErrorModule