TCP/UDP binding: fixed character encoding and make encoding configurable...

....