Fix some Unicode path issues and tiny tweak to armjit

I think this will fix #7235.  Not absolutely pretty on the jpeg case...

-[Unknown]