switch to String with multiple encoding support