Make the constructor of std.string.StringException @safe and pure