Added debugging messages
Preparing ground for dynamically generated, locale-aware regexp
Preparing more ground
Future-proof of locale bugfix (commit 79f88f8002de921d29a3fb731acac2bd7a5f7f10)

This is done by building a regular expression that catches errors based on the locale of R