prevent encoding an already encoded string