[Core] Locale dependent code

For me the core tests failed because there are two locale dependent parts in the code.
Look at the Jira ticket for details.

Why is it necessary to check the exception message in isBindCollision in
 core/src/main/scala/org/apache/spark/util/Utils.scala
?