Add back the old getRendererFromString method for compatibility
Don't rely on default encoding for unit tests