Fix for uri replace with regex producing 'null'. Fixes #90

Fix for uri replace with regex producing 'null' in the target 'ws*' uri in Android. This fixes #90