Fixed encoding in background bug