issue #1 - solved URL encoding bug, not only for getPublicUrl, but also for header encodings that matter