diff --git a/www/src/py_builtin_functions.js b/www/src/py_builtin_functions.js
index <HASH>..<HASH> 100644
--- a/www/src/py_builtin_functions.js
+++ b/www/src/py_builtin_functions.js
@@ -2914,6 +2914,7 @@ function $url_open(){
             for(const char of $res){
                 source.push(char.charCodeAt(0))
             }
+            source.pop()  // remove extra newline char added when created
             result.content = _b_.bytes.$factory(source)
             if(!is_binary){
                 // use encoding to restore text
Remove extra newline added by binascii.b2a_base<I> to restore original content