Fix for uri replace with regex producing 'null' in the target 'ws*' uri in Android