python3.3 bytes/str/unicode agnostic fix