Now checks if python version is less then 3.0. Encodes python 2 unicode strings as 'utf-8'
new test verifies unicode strings are encoded to utf-8 if using python 2