encoding quick fix