tests:api: python 2 fix

The '\u00ff' string literal is invalid in vanilla Python 2. Use the
'\xff' escape sequence instead.