Fixing unicode support for method name in linkage (Trac 1887)

Simply replaced the test if isinstance(method, str) by  if isinstance(method, string_types). String_types were already imported previously and used in other places of the module.