Reference SO post that solved the encoding problem.