Fix _create_identifier failure with werkzeug=0.9.

After werkzeug 0.9 all request.headers contains unicode values. 
_create_identifier expected non-unicode (bytes) strings and fails with TypeError: decoding Unicode is not supported