Codec for URI component encoding
Test remote option URL encoding
Use correct encoding for remote option url replacements #811
fix #811