fix teacher upload encoding