Use define_method when method name may contain odd characters.