finally passing all tests, think I solved my encoding issue