Fix testserver for python 2.7

Dealt with unicode issues (unicode strings are no longer split)