Don't to_sym in valid_method_name?

[ fix #3041 ]