Fixed encoding setup