fix encoding errors when the cache directory is non-ascii bytes (i.e. the username has unicode chars) under python 2
fix encoding errors when the cache directory is non-ascii bytes (i.e. the username has unicode chars) under python 2

autopulated/yotta,ARMmbed/yotta,ARMmbed/yotta,autopulated/yotta