[Fix] encoding issues
+ test.py tests functions in send.py as well