Make std.string.removechars @safe and pure by using implicit conversion