Encode thumbnail URLs