Fixed making short name of photo note

Was taking 10 chars from uri-encoded string, which meant it could
get cut off and have a "%" at the end.